package poker.preflopsim;

import java.text.DecimalFormat;

public class PlayerStats 
{
	private int losses = 0;
	private int wins = 0;
	private int draws = 0;
	
	public void incLosses() { losses++; }
	public void incWins() { wins++; }
	public void incDraws() { draws++; }
	public int getWins() { return wins; }
	public int getLosses() { return losses; }
	public int getDraws() { return draws; }
	
	public double handStrength(int players)
	{
		double val = (wins + (draws/(float)2)) / (float)(wins + draws + losses);
		return Math.pow(val, players);
	}
	
	public double winPercentage()
	{
		
		return (float)wins / (wins + losses + draws);
	}
}
